<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>

<%-- Importa las tag libraries necesarias --%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>educacionIT :: Proyecto-Sessions</title>
    </head>
    <body>
    <jsp:include page="encabezado.jsp" />
    <div align="right"><h1><bean:message key="login.titulo" /></h1></div>
    <hr>
    <div align=center>
    <html:form action="procesarLogin.do" method="POST">
        <html:hidden property="accion" value="login" />
        <bean:message key="login.username" /> <html:text property="username" />
        <br><br>
        <bean:message key="login.password" /> <html:password property="password" />
        <br>
        <hr>
        <html:submit>
            <bean:message key="login.submit"/>
        </html:submit>
        <br>
        <font color="red">
            <c:if test="${requestScope.accion == 'invalido'}" >
                <bean:message key="login.error.noexiste" />
            </c:if>
        </font>
    </html:form>
    </form>
    <html:errors/>
    </div>
    </body>
</html>
